Ends a procedure or block.
プロシージャーやブロックの終了を宣言します。
End, End Function, End If, End Select, End Sub
End、End Function、End If、End Select、End Sub
Use the End statement as follows:
End ステートメントは、下記のように使用します。
End: Is not required, but can be entered anywhere within a procedure to end the program execution.
終了期:必ずしも使用する必要はありませんが、プロシージャー中でプログラムの実行を終了させたい任意の位置に配置できます。
End Function: Ends a Function statement.
End Function:Function ステートメントの終了を宣言します。
End If: Marks the end of a If...Then...Else block.
End If:If...Then...Else ブロックの終了を宣言します。
End Select: Marks the end of a Select Case block.
End Select:Select Case ブロックの終了を宣言します。
End Sub: Ends a Sub statement.
End Sub:Sub ステートメントの終了を宣言します。
Sub ExampleRandomSelect
Sub ExampleRandomSelect
Dim iVar As Integer
Dim iVar As Integer
iVar = Int((15 * Rnd) -2)
IVar = Int((15 * Rnd) -2)
Select Case iVar
Select Case iVar
Case 1 To 5
Case 1 To 5
Print "Number from 1 to 5"
Print "Number from 1 to 5"
Case 6, 7, 8
Case 6, 7, 8
Print "Number from 6 to 8"
Print "Number from 6 to 8"
Case Is > 8 And iVar < 11
Case Is > 8 And iVar < 11
Print "Greater than 8"
Print "Greater than 8"
Case Else
Case Else
Print "Outside range 1 to 10"
Print "Outside range 1 to 10"
End Select
End Select
end sub
end sub